package com.hspedu.spring.bean;

/**
 * @author Charlie
 * @version 1.0
 * @date 2/11/2025 下午9:49
 */
public class House {
    private String name;
    public House() {
        System.out.println("House() 构造器");
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        System.out.println("House setName()...");
        this.name = name;
    }
    public void init() {
        System.out.println("House init()..");
    }
    public void destroy() {
        System.out.println("House destory()..");
    }

    @Override
    public String toString() {
        return "House{" +
                "name='" + name + '\'' +
                '}';
    }
}
